Skip to content

4090 maintenance schema changes move notifications to event level#4153

Merged
wavehassman merged 21 commits intofeature/event-notificationsfrom
4090-maintenance---schema-changes-move-notifications-to-event-level
Apr 19, 2026
Merged

4090 maintenance schema changes move notifications to event level#4153
wavehassman merged 21 commits intofeature/event-notificationsfrom
4090-maintenance---schema-changes-move-notifications-to-event-level

Conversation

@porpol
Copy link
Copy Markdown
Contributor

@porpol porpol commented Apr 14, 2026

Changes

Moved sendSlackNotifications from Event_Type to Event for routes, controllers, services, transformers, and in prisma and shared types. Created schema migration. Updated tests to match the new location of sendSlackNotifications, and tests (for backend) pass.

Screenshots

Create event route works
image

Edit event route works
image

Checklist

It can be helpful to check the Checks and Files changed tabs.
Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

  • All commits are tagged with the ticket number
  • No linting errors / newline at end of file warnings
  • All code follows repository-configured prettier formatting
  • No merge conflicts
  • All checks passing
  • Screenshots of UI changes (see Screenshots section)
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • No yarn.lock changes (unless dependencies have changed)
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

Closes #4090

@porpol porpol linked an issue Apr 14, 2026 that may be closed by this pull request
4 tasks
@porpol porpol self-assigned this Apr 14, 2026
Copy link
Copy Markdown
Contributor

@cielbellerose cielbellerose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks awesome! only one small schema note. also make sure you are merging into the feature/event-notifications branch so we can merge BE and FE at the same time when the time comes


*/
-- AlterTable
ALTER TABLE "Event" ADD COLUMN "sendSlackNotifications" BOOLEAN NOT NULL;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should default this to false so it works with the existing events, also we don't need to include the above comment

@porpol porpol changed the base branch from develop to feature/event-notifications April 17, 2026 05:18
Copy link
Copy Markdown
Contributor

@cielbellerose cielbellerose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks great!

Copy link
Copy Markdown
Contributor

@wavehassman wavehassman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the current migration, all events already made under an event type that has sendSlackNotifications set will no longer receive them since we're defaulting false. I think we should default false, but we should have the migration go through every event that is correlated to an event type in the organization where sendSlackNotification is true and make the new field in event true

@wavehassman wavehassman self-requested a review April 19, 2026 02:59
Copy link
Copy Markdown
Contributor

@wavehassman wavehassman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great job!

@wavehassman wavehassman merged commit 76a6055 into feature/event-notifications Apr 19, 2026
3 of 4 checks passed
@wavehassman wavehassman deleted the 4090-maintenance---schema-changes-move-notifications-to-event-level branch April 19, 2026 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Maintenance] - Schema Changes Move Notifications to Event Level

3 participants